﻿
using FMusicReload.Utils;
using HandyControl.Controls;
using System;
using System.Windows;
using Window = HandyControl.Controls.Window;

namespace FMusicReload.Views.Others
{
    public partial class SoundChangeViewSprit
    {
        public double value = 1;
        public SoundChangeViewSprit()
        {
            InitializeComponent();
            save.Click += (s, e) => value = vlum.Value / 100;
            GC.Collect();
        }
    }

    class SoundChangeWindowBase
    {
        private SimplePanel sp;
        public SoundChangeWindowBase()
        {
            sp = new SoundChangeViewSprit();
            GC.Collect();
        }

        public object RenderContent(Window father)
        {
            father.Title = "调节音量";
            father.ResizeMode = ResizeMode.NoResize;
            father.WindowStyle = WindowStyle.None;
            father.MaxWidth = 250;father.MaxHeight = 150;
            return sp;
        }
    }
}
